* alerts browsers not capable of installing software to the fact
* and prevents them proceding
*/
function fp_runWarning(){
var d = document, retVal = false
if (d.ie4plus) retVal = true;
else if (d.op5plus) {
retVal = confirm("Alert! To run files directly from Opera you must choose 'Run file'\nin the next dialog box. If you choose 'Save to disk' the installation\nwill not work.\n\nContinue?");
}
else if (d.ns4plus && fp_getCookie('PCPLUS_CDN') != null) {
retVal = confirm("Alert! To run files directly from Netscape you must have\nthe Netscape Open/Save dialog enabled. If it is,\nyou will get a 'Security Hazard' dialog box next. Choose 'Open'\nto run the file.\n\nIf you just get a 'Save to disk' dialog, you will not be able to use Netscape\nto install this software.\n\nSee the Netscape page under 'Help' for more information.\n\nDo you wish to continue?");
}
else {
alert('Alert! This will not work.\n\nYour browser does not allow the execution of files\ndirectly from the PowerDisc.');
retVal = false;
}
document.MM_returnValue = retVal;
}
/* fp_emailWarning()
* Warns users that they must have an email client configured to access the mailto link,
* unless they've set the PCPLUS_CD3 cookie (on the help.htm page). Now why doesn't cancelling
* work in NS? Have tried everything, I think...
*/
function fp_emailWarning() { //v1.0
var d = document, retVal = true;
if (fp_getCookie('PCPLUS_CD3') == null) {
if (d.ie4plus || d.ns4plus || d.op5plus) {
retVal = confirm('Accessing this link will require you to have an\ne-mail client set up and integrated correctly.\n\nIf it is you will be taken to a New Message window\nwhere you can type in your message and then send it.\n\nIf you are not connected to a network, this means\nyou need a modem and Internet account setup and\nswitched on.\n\nDo you wish to continue?');
}
else {
alert('Accessing this link will require you to have an\ne-mail client set up and integrated correctly.\n\nIf it is you will be taken to a New Message window\nwhere you can type in your message and then send it.\n\nIf you are not connected to a network, this means\nyou need a modem and Internet account setup and\nswitched on.');
}
}
document.MM_returnValue = retVal;
}
/* fp_linkWarning()
* Alerts users they are entering pages authored by a 3rd party, which may contain links
* to the Internet that will require an Internet connection. Disabled by the PCPLUS_CD5
* cookie
*/
function fp_linkWarning() { //ver1.0
if (fp_getCookie('PCPLUS_CD5') == null) {
alert('This link takes you to pages authored by a third party.\n\nThey may contain links that lead onto the internet.\nIf you are not connected to a network, you will\nneed a modem and Internet account setup\nand switched on in order to follow them.');
}
}
/* fp_webWarning()
* Alerts users they are accessing a remote link that requires an Internet connection.
* Disabled with the PCPLUS_CD1 cookie, set on the help.htm page
*/
function fp_webWarning() { //ver1.0
var d = document, retVal = true;
if (fp_getCookie('PCPLUS_CD1') == null) {
if (d.ie4plus || d.ns4plus || d.op5plus) {
retVal = confirm('Accessing this link will require you to go on-line.\n\nIf you are not connected to a network, this means\nyou need a modem and Internet account setup\nand switched on. Do you wish to continue?');
}
else {
alert('Accessing this link will require you to go on-line.\n\nIf you are not connected to a network, this means\nyou need a modem and Internet account setup\nand switched on.');
}
}
document.MM_returnValue = retVal;
}
/* fp_checkBrowser()
* Determine browser and OS
* should be in body's onload
*/
function fp_checkBrowser() { //ver1.0
var bname = navigator.appName.toLowerCase();
var bVersion = navigator.appVersion.toLowerCase();
var bVer = parseInt(bVersion);
var userAgent = navigator.userAgent.toLowerCase();